<template>
    <div id="fstpage">
        <img style="position: fixed;height: 100%;width: 100%;z-index: -100;pointer-events: none;"
            src="/images/sybgbg.jpg" alt="">
        <img style="position: fixed;width: 100%;z-index: -1;top: 0;pointer-events: none;height: 120px;"
            src="/images/bt.png" alt="">
        <img class="centermap" src="/images/tu.png" alt="">
        <div class="mbtns">
            <div style="cursor: pointer;display: flex;flex-direction: column;align-items: center;" v-for="item in items"
                @mouseover="mousein(item.id)" @mouseout="mouseout()" @click="tosys(item.route)">
                <img style="height: 165px;" :src="item.img" alt="">
                <div>
                    <img style="height: 68px;transform: translate(0,-10%);"
                        :src="active == item.id ? item.hbg : item.bg" alt="">
                </div>
            </div>
        </div>
        <div class="dibu">人口与城镇化地理信息系统 &nbsp; <asp:Label ID="m_count" runat="server" Text="本站访客人次"></asp:Label><br>
            建设单位：河南省统计局 &nbsp; 技术支持：<a href="http://www.henangis.com/" target="_blank" class="jglj">郑州景观地理空间信息研究院</a>
            &nbsp;
            系统备案号：豫ICP15034188号-3
        </div>
        <div class="container" z-index="99999" style="pointer-events: none;">
            <div class="circle-container" v-for="item in 100">
                <div class="circle"></div>
            </div>
        </div>
        <div class="zoom-container">
            <div class="zhjtp">
                <img src="../assets/css/lo.png" alt="Zoomable Image" class="zoom-image" />
            </div>
        </div>
    </div>

</template>

<script setup>
import { ref, onMounted } from 'vue';
import { useRouter } from 'vue-router';
const items = ref([
    {
        id: 1,
        name: '人口数据统计',
        img: '/images/z_an.png',
        bg: '/images/ann01.png',
        hbg: '/images/ann01h.png',
        route: 'chart'
    },
    {
        id: 2,
        name: '地理信息系统',
        img: '/images/y_an.png',
        bg: '/images/ann02.png',
        hbg: '/images/ann02h.png',
        route: 'login'
    }
])
const active = ref(0);
function mousein(id) {
    active.value = id;
}
function mouseout() {
    active.value = -1;
}
function tosys(e) {
    router.push({
        name: e
    })
}
onMounted(() => {
    zoomImage();
    var bodyy = document.querySelector('.zoom-container');
    setTimeout(function () { // 延迟放大图片
        bodyy.style.opacity = "0"; // 放大至200%
    }, 2200); // 延迟500毫秒后执行放大

    setTimeout(function () { // 延迟放大图片
        bodyy.style.display = "none";
    }, 4200);
})
function zoomImage() {
    var img = document.querySelector('.zoom-image');
    img.style.width = '50%'; // 初始化宽度

    setTimeout(function () { // 延迟放大图片
        img.style.width = '70%'; // 放大至200%
    }, 100); // 延迟500毫秒后执行放大
}

const router = useRouter();

</script>

<style scoped lang="less">
@import url('../assets/css/style.css');
@import url('../assets/css/style2.css');

#fstpage {
    width: 100%;
    height: 100%;

    .zoom-container {
        margin: 0 auto;
        width: 100%;
        overflow: hidden;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: #000;
        height: 100%;
        transition: opacity 1s;
        z-index: 1;

    }

    .zoom-image {
        display: block;
        margin: 0 auto;


        transition: width 3s;

    }

    .zhjtp {
        position: absolute;
        height: 100%;
        top: calc(50% - 66px);
        left: calc(50% - 468.5px);
    }

    .mbtns {
        width: 600px;
        height: 300px;
        position: fixed;
        align-items: center;
        justify-content: space-between;
        bottom: 15%;
        display: flex;
        left: 50%;
        transform: translate(-50%, 0);
    }

    // background: url(../images/sybgbg.jpg) no-repeat;
    // backgro]und-size: 1920px auto;
    .centermap {
        position: fixed;
        z-index: -1;
        top: 35%;
        left: 50%;
        width: 30%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    body {
        font-size: 14px;
        margin: 0;
        padding: 0;
        font-family: "微软雅黑";
        color: #333;
        overflow-x: hidden;
        position: relative;
        font-size: 16px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    div,
    ul,
    li,
    input {
        margin: 0;
        padding: 0;
    }

    a {

        text-decoration: none;
    }

    ol,
    ul,
    li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    i,
    em {
        font-style: normal;
    }

    p {
        margin: 0;
    }

    a img {
        border: none;
    }

    table {
        border-collapse: collapse;
    }

    th,
    td {
        padding: 0;
    }

    input {
        padding: 0;
        border: none;
        outline: none;
    }

    .fl {
        float: left;
    }

    .fr {
        float: right;
    }

    .clearfix:after {
        display: block;
        content: "";
        clear: both;
    }

    .clearfix {
        zoom: 1;
    }

    .clear {
        clear: both;
    }

    .center {
        width: 1200px;
        margin: 0 auto;
    }

    .Img img {
        display: block;
    }

    .tdn {
        text-decoration: none;
    }

    i {
        font-style: normal;
    }

    textarea {
        font-family: "微软雅黑";
    }

    .clear {
        clear: both;
    }

    .tit {
        text-align: center;
        padding-top: 130px;
    }

    .dbg {
        background: url(../images/dbg.png) no-repeat;
        background-size: cover;
    }

    .zjbf {
        margin: 0 auto;
        width: 1200px;
        display: flex;
        justify-content: space-evenly;
        padding-top: 100px;
    }

    .zjbf li {
        text-align: center;
        width: 250px;
    }

    .zjbf li .a b {
        transition: All 0.4s ease-in-out;
        -webkit-transition: All 0.4s ease-in-out;
        -moz-transition: All 0.4s ease-in-out;
        -o-transition: All 0.4s ease-in-out;
    }

    .zjbf li .a:hover b {
        margin-top: -10px;
    }

    .zjbf li .a b {
        cursor: pointer;
        display: block;
        width: 250px;
        height: 251px;
        text-align: center;
        padding-top: 80px;
    }

    .zjbf li.img01 .a b {
        background: url(../images/ico_01bg.png) no-repeat;
    }

    .zjbf li.img01 .a:hover b {
        background: url(../images/ico_01bgh.png) no-repeat;
    }

    .zjbf li.img02 .a b {
        background: url(../images/ico_02bg.png) no-repeat;
    }

    .zjbf li.img02 .a:hover b {
        background: url(../images/ico_02bgh.png) no-repeat;
    }

    .zjbf li.img03 .a b {
        background: url(../images/ico_03bg.png) no-repeat;
    }

    .zjbf li.img03 .a:hover b {
        background: url(../images/ico_03bgh.png) no-repeat;
    }

    .zjbf li .a em {
        display: block;
        margin-top: 30px;
    }

    .dibu {
        width: 100%;
        position: fixed;
        bottom: 30px;
        // background: url(../images/dbbg.png) repeat-x;
        height: 88px;
        text-align: center;
        padding-top: 24px;
        line-height: 36px;
        font-size: 14px;
        color: #ccc !important;
    }

    .jglj {
        color: #ccc;
    }

    .dibu a:hover.jglj {
        // color: #fff;
        text-decoration: underline;
    }
}
</style>
